import java.util.Arrays;

public class Text {
    public static void main(String[] args) {
        int[] array={1,2,3};
        array=func(array);
        String ret=Arrays.toString(array);
        System.out.println(ret);
    }
    public static int[] func(int[] array){
        for (int i = 0; i < array.length; i++) {
            array[i]*=2;
        }
        return array;
    }
}
